package com.junjie.controller;

import com.alibaba.fastjson.JSONObject;
import com.junjie.base.annotation.NettyController;
import com.junjie.base.annotation.NettyRequestMapping;
import com.junjie.base.annotation.RequestMethod;

/**
 * @Author Jun jie Yi
 * @Date 2022/3/8 12:17
 */
@NettyController(url = "/user")
public class ControllerTest {

    @NettyRequestMapping(url = "/aaa", method = RequestMethod.GET)
    public JSONObject Test1() {

        return null;
    }

    @NettyRequestMapping(url = "/bbb", method = RequestMethod.POST)
    public String Test2(JSONObject jsonObject) {
        System.out.println(jsonObject);
        return "SUCCESS";
    }

}
